<%@ include file="../common/IncludeTop.jsp"%>

<script src="js/jquery-3.5.1.min.js">
	// $(function () {
	// 	$("[name='username']").on("keyup", function () {
	// 		$("#isExistInfo").remove();
	// 		if ($("[name='username']").val() != "") {
	// 			var queryString = "username=" + $("[name='username']").val();
	// 			$.get("UserNameIsExist", queryString, function (data) {
	// 				var info;
	// 				if(data == "Exist")
	// 					info = "用户名已存在"
	// 				else
	// 					info = "用户名可用"
	// 				$("[name='username']").parent().after("<span id='isExistInfo'>" + info + "</span>");
	// 			})
	// 		}
	// 	})
	// })
</script>
<script src="js/registNewAccount.js" charset="UTF-8"></script>

<div id="Catalog">
	<div id="BackLink">
		<a href="Login">Return to Login</a>
	</div>

	<form action="RegisterAccount" method="post">

	<h3>User Information</h3>

	<fieldset>
	<table>
		<tr>
			<td>User ID:</td>
			<td>
				<input type="text" name="username" id = "username"><br>
			</td>
		</tr>
		<tr>
			<td>New password:</td>
			<td>
				<input type="text" name="password">
			</td>
		</tr>
		<tr>
			<td>Repeat password:</td>
			<td>
				<input type="text" name="repeatedPassword">
			</td>
		</tr>
	</table>
	</fieldset>

	<%@ include file="IncludeAccountFields.jsp"%>

		<input type="submit" name="newAccount" id= "newAccount" value="Save Account Information">

		</form>
</div>

<%@ include file="../common/IncludeBottom.jsp"%>